<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/26
  Time: 08:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
<%--        <td>班级</td>--%>
<%--        <td>操作</td>--%>
    </tr>
    <c:forEach items="${cla.students}" var="cla">
        <tr>
            <td>${cla.sId}</td>
            <td>${cla.sName}</td>
            <td>${cla.birth}</td>
            <td>${cla.gender}</td>
<%--            <td>${cla.cName}</td>--%>
<%--            <td>--%>
<%--                <button onclick="del(${stu.sId})">删除</button>--%>
<%--                <a href="getStudentById?sId=${stu.sId}">修改</a>--%>
<%--            </td>--%>
        </tr>
    </c:forEach>
</table>
<script>
    function del(id) {
        if (confirm("确定删除吗？")){
            location.href = "deleteById?id="+id;
        }
    }
</script>
</body>
</html>
